package com.sky.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

@Data
//@Schema(description = "新增分类时所需要的参数")
public class CategoryDTO implements Serializable {

    //主键
    private Long id;
    //@Schema(description = "类型 1 菜品分类 2 套餐分类",requiredMode = Schema.RequiredMode.REQUIRED)
    //类型 1 菜品分类 2 套餐分类
    private Integer type;
    //@Schema(description = "分类名称",requiredMode = Schema.RequiredMode.REQUIRED)
    //分类名称
    private String name;
    //@Schema(description = "顺序",requiredMode = Schema.RequiredMode.REQUIRED)
    //排序
    private Integer sort;

}
